This tutorial shows how to create an object generator that dynamically generates objects and displays them in a trajectory list box.
The object generator you create in the C application code uses a property you create in the Kanzi Studio project to determine the number of available items for display in the trajectory list box. To show the items, the trajectory list box asks the object generator for all the visible objects, while the rest of the objects in the list are not shown. When you scroll the list box, the visible objects change, and the list box asks for more objects. For each requested object, the object generator starts a background task to load the requested image, instantiates the image prefab, and gives the instantiated object to the list box for display.
In the first two steps of this tutorial you learn how to create and set up a Kanzi Studio project, in the third step you use the Kanzi Engine API to dynamically load and release objects as you scroll the list box in the Kanzi application.
This video shows the result of this tutorial.
Before you start this tutorial, make sure you have your Kanzi development environment set up. You need to:
See Installing Kanzi.
This tutorial assumes you understand the basics of working with Kanzi Studio. The best entry points for getting familiar with Kanzi Studio are: